<!DOCTYPE html>
<html>
   <head>
      <title>Age Verifcation</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <style type="text/css">html,body{font-family:Arial, Helvetica, sans-serif; font-size:14px; overflow-x:hidden; overflow-y:hidden;}</style>
      <script language="javascript">
         function checkAge()
         {
			var minage = 18;
			var year = document.getElementById('year');
			year = year.options[year.selectedIndex].text;
			parseInt(year);
			var month = document.getElementById('month');
			if (document.getElementById('month').options[month.selectedIndex].text == "January"){
				month = "1";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "February"){
				month = "2";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "March"){
				month = "3";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "April"){
				month = "4";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "May"){
				month = "5";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "June"){
				month = "6";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "July"){
				month = "7";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "August"){
				month = "8";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "September"){
				month = "9";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "October"){
				month = "10";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "November"){
				month = "11";
				parseInt(month);
			} else 
			if (document.getElementById('month').options[month.selectedIndex].text == "December"){
				month = "12";
				parseInt(month);
			}
			var day = document.getElementById('day');
			day = day.options[day.selectedIndex].text;
			parseInt(day);
			var theirDate = new Date((parseInt(year) + minage), parseInt(month), parseInt(day));
			var today = new Date;
			if ((today.getTime() - theirDate.getTime()) < 0){
				document.getElementById("age_form").style.display = "none";
				document.getElementById("message").style.display = "none";
				document.getElementById("submessage").innerHTML = "Maaf, Usia anda dilarang menonton Video ini<br/>Sorry, Your age criteria denied access to this video.";
				document.getElementById("submessage").style.color = "#FF0000";
				document.getElementById("submessage").style.position = "relative";
				document.getElementById("submessage").style.top = "50px";
				var dt3 = new Date();
				dt3.setTime(dt3.getTime() + (60 * 60 * 1000));
				document.cookie = 'agegatenotoldenough=okay;expires=' + dt3.toGMTString() + ';path=/';
				return false;
			}
			else { 
				parent.document.getElementById('ifrm').style.display = "none";
				var dt = new Date();
				dt.setTime(dt.getTime() + (60 * 60 * 1000)); 
				document.cookie = 'agegatejs=okay;expires=' + dt.toGMTString() + ';path=/';
				return true;
			}
		}
      </script> 
   </head>
   <body>
      <div align="center" style="width:100%;height:100%;position:absolute;">
         <br /><br /><br /><br />
         <span id="message" style="color: #FFFFFF; -webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;-o-user-select: none; user-select: none;">WARNING!! The content in this video requires age verification.</span><br />
         <span id="submessage" style="color: #FFCC00; -webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;-o-user-select: none; user-select: none;">Please enter your date of birth below:</span><br /><br />
         <form onSubmit="return false;" name="age_form" id="age_form">
            <select name="month" id="month" style="background-color:#EEE; border:none;width:92px;">
               <option value="1">January</option>
               <option value="2">February</option>
               <option value="3">March</option>
               <option value="4">April</option>
               <option value="5">May</option>
               <option value="6">June</option>
               <option value="7">July</option>
               <option value="8">August</option>
               <option value="9">September</option>
               <option value="10">October</option>
               <option value="11">November</option>
               <option value="12">December</option>
            </select>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <select id="day" name="day" style="background-color:#EEE; border:none;width:39px;">
               <option>1</option>
               <option>2</option>
               <option>3</option>
               <option>4</option>
               <option>5</option>
               <option>6</option>
               <option>7</option>
               <option>8</option>
               <option>9</option>
               <option>10</option>
               <option>11</option>
               <option>12</option>
               <option>13</option>
               <option>14</option>
               <option>15</option>
               <option>16</option>
               <option>17</option>
               <option>18</option>
               <option>19</option>
               <option>20</option>
               <option>21</option>
               <option>22</option>
               <option>23</option>
               <option>24</option>
               <option>25</option>
               <option>26</option>
               <option>27</option>
               <option>28</option>
               <option>29</option>
               <option>30</option>
               <option>31</option>
            </select>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <select name="year" id="year" style="background-color:#EEE; border:none;width:53px;">
               <option>2013</option>
               <option>2012</option>
               <option>2011</option>
               <option>2010</option>
               <option>2009</option>
               <option>2008</option>
               <option>2007</option>
               <option>2006</option>
               <option>2005</option>
               <option>2004</option>
               <option>2003</option>
               <option>2002</option>
               <option>2001</option>
               <option>2000</option>
               <option>1999</option>
               <option>1998</option>
               <option>1997</option>
               <option>1996</option>
               <option>1995</option>
               <option>1994</option>
               <option>1993</option>
               <option>1992</option>
               <option>1991</option>
               <option>1990</option>
               <option>1989</option>
               <option>1988</option>
               <option>1987</option>
               <option>1986</option>
               <option>1985</option>
               <option>1984</option>
               <option>1983</option>
               <option>1982</option>
               <option>1981</option>
               <option>1980</option>
               <option>1979</option>
               <option>1978</option>
               <option>1977</option>
               <option>1976</option>
               <option>1975</option>
               <option>1974</option>
               <option>1973</option>
               <option>1972</option>
               <option>1971</option>
               <option>1970</option>
               <option>1969</option>
               <option>1968</option>
               <option>1967</option>
               <option>1966</option>
               <option>1965</option>
               <option>1964</option>
               <option>1963</option>
               <option>1962</option>
               <option>1961</option>
               <option>1960</option>
               <option>1959</option>
               <option>1958</option>
               <option>1957</option>
               <option>1956</option>
               <option>1955</option>
               <option>1954</option>
               <option>1953</option>
               <option>1952</option>
               <option>1951</option>
               <option>1950</option>
               <option>1949</option>
               <option>1948</option>
               <option>1947</option>
               <option>1946</option>
               <option>1945</option>
               <option>1944</option>
               <option>1943</option>
               <option>1942</option>
               <option>1941</option>
               <option>1940</option>
               <option>1939</option>
               <option>1938</option>
               <option>1937</option>
               <option>1936</option>
               <option>1935</option>
               <option>1934</option>
               <option>1933</option>
               <option>1932</option>
               <option>1931</option>
               <option>1930</option>
               <option>1929</option>
               <option>1928</option>
               <option>1927</option>
               <option>1926</option>
               <option>1925</option>
               <option>1924</option>
               <option>1923</option>
               <option>1922</option>
               <option>1921</option>
               <option>1920</option>
               <option>1919</option>
               <option>1918</option>
               <option>1917</option>
               <option>1916</option>
               <option>1915</option>
               <option>1914</option>
               <option>1913</option>
            </select>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="submit" name="_send_date_" id="_send_date_" value="Verify" onClick="return checkAge()" style="background-color:#FFCC00 !important; border:none !important;">
         </form>
      </div>
      <div id="bg" style="position:absolute;width:103%;height:100%;background-color:#000;top:0px;z-index:-1; left:-3px;" align="center"></div>
      <script type="text/javascript">
         var test = document.cookie.toString();
         var result = test.search("agegatejs");
         var result2 = test.search("agegatenotoldenough");
         if (result2 != "-1"){
			document.getElementById("age_form").style.display = "none";
			document.getElementById("message").style.display = "none";
			document.getElementById("submessage").innerHTML = "Maaf, Usia anda dilarang menonton Video ini<br/>Sorry, Your age criteria denied access to this video.";
			document.getElementById("submessage").style.color = "#FF0000";
			document.getElementById("submessage").style.position = "relative";
			document.getElementById("submessage").style.top = "50px";
         }
         if (result != "-1"){
			parent.document.getElementById('ifrm').style.display = "none";
         }
      </script>
   </body>
</html>